package cn.ierror.common.enums;

/**
 * 项目名称: tourism
 * 类名称: cn.pubinfo.tourism.common.enums
 * 类描述: 景区设施
 * 创建人: fzc
 * 创建时间: 2017年05月03日 下午2:54
 **/
public enum FacilityEnum {

    TCC("101","停车场"),SPC("201","售票处"),CT("301","餐厅场所"),GGCS("401","公共厕所"),WIFI("501","WIFI"),
    GW("601","购物点"),YLCS("701","娱乐场所"),ZSCS("801","住宿场所");

    private String type;

    private String String;

    FacilityEnum(String type, String string) {
        this.type = type;
        this.String = string;

    }

    public String getType() {
        return type;
    }

    public java.lang.String getString() {
        return String;
    }

    public static FacilityEnum typeOf(String type) {
        for (FacilityEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
